$(document).ready(function ()
{
    var message = JSON.parse(sessionStorage.getItem("head_message"));

    if (message === null)
    {
        alert("请先登录");
        window.location.href ="../index.html";
    }


    var HeadImg = message.headimg;
    var change = document.getElementById('LeftIcon');
    change.src="../img/user_img/"+HeadImg;
    var Href = sessionStorage.getItem("href");
    if(Href)
    {
        var str = "<iframe src=\""+ Href +".html\" name=\"Own\" frameborder=\"0\" scrolling=\"no\" width=\"100%\" height=\"100%\"></iframe>"
        $("#RRR").empty();
        $("#RRR").html(str);
    }
})

function refresh() {
    location.reload();
    sessionStorage.removeItem("href");
}